package edu.xidian.forum.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

@Data
public class UpdateTopicDto implements Serializable {
    @NotBlank(message = "Id cannot be empty")
    private String id;

    @NotBlank(message = "Title cannot be empty")
    private String title;

    @NotBlank(message = "Content cannot be empty")
    private String content;

    @NotEmpty(message = "Tags cannot be empty")
    private List<String> tags;
}
